package com.lou1052.redis.jedis.api;

/**
 * Created with IntelliJ IDEA.
 * User: liuqing
 * Date: 2015/11/13
 * Time: 22:36
 * To change this template use File | Settings | File Templates.
 */
public interface RunCommands {
    /**
     * 执行命令
     * @param key 命令操作的key shared和cluster用于选择jedis
     * @param runInJedis
     * @param <R>
     * @return
     */
    <R> R run(String key, RunInJedis<R> runInJedis);
}
